package com.csdj.questions.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csdj.questions.entity.AttquesComment;
import com.csdj.questions.mapper.AttquesCommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 评论表(问题和文章) 服务实现类
 * </p>
 *
 * @author 郭成星
 * @since 2022-03-06
 */
@Service
public class AttquesCommentService extends ServiceImpl<AttquesCommentMapper, AttquesComment> implements IAttquesCommentService {

    @Autowired
    private AttquesCommentMapper commentMapper;

    /**
     * 用户发布一条评论
     * @param attquesComment
     * @return
     */
    public  int insertComment(AttquesComment attquesComment){

        return commentMapper.insert(attquesComment);
    }


}
